import request from "@/utils/request";

// 查询进销存期初期末记录列表
export function listBiShipmentsRecord(query) {
  return request({
    url: "/product/BiShipmentsRecord/list",
    method: "get",
    params: query,
  });
}

// 查询进销存期初期末记录详细
export function getBiShipmentsRecord(id) {
  return request({
    url: "/product/BiShipmentsRecord/" + id,
    method: "get",
  });
}

// 新增进销存期初期末记录
export function addBiShipmentsRecord(data) {
  return request({
    url: "/product/BiShipmentsRecord",
    method: "post",
    data: data,
  });
}
// 新增进销存期初期末记录
export function initData(data) {
  return request({
    url: "/product/BiShipmentsRecord/initData",
    method: "post",
    params: data,
  });
}
// 修改进销存期初期末记录
export function updateBiShipmentsRecord(data) {
  return request({
    url: "/product/BiShipmentsRecord",
    method: "put",
    data: data,
  });
}

// 删除进销存期初期末记录
export function delBiShipmentsRecord(id) {
  return request({
    url: "/product/BiShipmentsRecord/" + id,
    method: "delete",
  });
}
